google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-03-03',20752159,4,8,null,null], ['2024-03-04',20806034,2,10,null,null], ['2024-03-05',20847035,2,11,null,null], ['2024-03-06',20883368,2,13,null,null], ['2024-03-07',20914391,2,18,null,null], ['2024-03-08',20953157,2,23,null,null], ['2024-03-09',20986749,2,27,null,null], ['2024-03-10',21022551,7,28,null,null], ['2024-03-11',21064622,9,30,null,null], ['2024-03-12',21098183,9,34,null,null], ['2024-03-13',21149288,12,32,null,null], ['2024-03-14',21191097,15,34,null,null], ['2024-03-15',21217804,16,43,null,null], ['2024-03-16',21252912,18,37,null,null], ['2024-03-17',21292317,21,35,null,null], ['2024-03-18',21292317,18,20,null,null], ['2024-03-19',21327215,17,18,null,null], ['2024-03-20',21360732,17,18,null,null], ['2024-03-21',21390260,17,21,null,null], ['2024-03-22',21419953,17,22,null,null], ['2024-03-23',21458589,17,21,null,null], ['2024-03-24',21520028,13,22,null,null], ['2024-03-25',21570108,13,19,null,null], ['2024-03-26',21619986,13,15,null,null], ['2024-03-27',21619986,11,10,null,null], ['2024-03-28',21707102,11,1,null,null], ['2024-03-29',21777816,3,1,null,null], ['2024-03-30',21861869,2,1,null,null], ['2024-03-31',21893158,1,2,null,null], ['2024-04-01',21955655,1,3,null,null], ['2024-04-02',22008944,1,2,null,null], ['2024-04-03',22008944,1,4,null,null], ['2024-04-04',22108570,1,8,null,null], ['2024-04-05',22151156,2,9,null,null], ['2024-04-06',22190743,2,9,null,null], ['2024-04-07',22258940,2,9,null,null], ['2024-04-08',22258940,5,6,null,null], ['2024-04-09',22295441,5,7,null,null], ['2024-04-10',22330965,5,7,null,null], ['2024-04-11',22368577,5,6,null,null], ['2024-04-12',22396681,3,8,null,null], ['2024-04-13',22431226,3,12,null,null], ['2024-04-14',22466246,3,13,null,null], ['2024-04-15',22503408,3,12,null,null], ['2024-04-16',22533287,3,8,null,null], ['2024-04-17',22564149,4,8,null,null], ['2024-04-18',22595033,4,1,null,null], ['2024-04-19',22649683,2,2,null,null], ['2024-04-20',22687720,2,2,null,null], ['2024-04-21',22687720,1,6,null,null], ['2024-04-22',22741711,1,6,null,null], ['2024-04-23',22778574,1,8,null,null], ['2024-04-24',22817572,1,11,null,null], ['2024-04-25',22871363,1,15,null,null], ['2024-04-26',22873649,3,21,null,null], ['2024-04-27',22934833,5,19,null,null], ['2024-04-28',22979927,6,17,null,null], ['2024-04-29',22979927,9,26,null,null], ['2024-04-30',23011777,9,30,null,null], ['2024-05-01',23028049,10,37,null,null], ['2024-05-02',23028049,10,22,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:50}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });